package com.selvn.encryptnote;

import android.content.Context;
import android.os.Environment;

public class Config{
	// Log
	public static final String LOGTAG = "EncryptNote";
	
	// database part
	public static final String DBNAME = "data";
	public static final String DBTABLE = "notes";
	public static final String DBID = "_id";
	public static final String DBTITLE = "title";
	public static final String DBBODY = "body";
	public static final String DBCREATEDATE = "createDate";
	public static final String DBMODIFY = "modify";
	public static final String DBLOCATION1 = "LOCATION1";
	public static final String DBLOCATION2 = "LOCATION2";
	
	// Code flag
	public static final int WRITE_INTERNAL_FILE_SUCCEED = 11;
	public static final int WRITE_INTERNAL_FILE_FAILED = 10;
	public static final int EDIT_MODE = 1;
	public static final int VIEW_MODE = 2;
	public static final int SAVE_SUCCEED = 41;
	public static final int SAVE_ERROR = 40;
	public static final int SAVE_FAILED_BLANK = 42;
	public static final int BACKUP_SUCCEED = 20;
	public static final int BACKUP_FAILED_NO_EXTERNAL = 21;
	public static final int BACKUP_FAILED = 22;
	public static final int BACKUP_FAILED_ENCRYPT_ERROR = 23;
	
	public static final int RESTORE_SUCCEED = 30;
	public static final int RESTORE_FAILED = 31;
	public static final int RESTORE_FAILED_NOFILEFOUND = 32;
	public static final int RESTORE_PARSE_FAILED = 33;
	
	
	// note operation
	public static final int NOTE_DELETE = 1;
	public static final int NOTE_SET_TIP = 2;
	
	// login password
	public static String SETTINGS = "mySetting";
	// External data folder
	public static String DATAFOLDEREXTERNAL = Environment.getExternalStorageDirectory().getPath() + "/EncryptNote/";
	// Backup file path
	public static String BACKUPPATH = DATAFOLDEREXTERNAL + "Backup/Backup";
	public static String BACKUPPATH_BEFORE = DATAFOLDEREXTERNAL + "Backup/Backup1.xml";
	// tip file path
	public static String TIPPATH = "tip.txt";

	public Config( Context contextInput)
	{
	}
	
	public static String GetBackupXml()
    {
		// <config>"+password+"</config>"
        return "";
    }
}
